<?php

require dirname(__DIR__) . "/vendor/autoload.php";

use Kmin\Template;
// 实例化模板引擎
$tpl = new Template([
    "view_path" => __DIR__ . "/../component/",
    "cache_path" => __DIR__ . "/../runtime/",
]);
?>

<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="../component/kmin-ui.css">
    <script type="module" src="../vendor/kmin/template/src/assets/kmin.js"></script>
</head>

<body>
    <km-demo></km-demo>
    <script type="module">
        // 内容
        <?php echo $tpl->fetch("demo"); ?>
    </script>
</body>

</html>